package org.csu.mypetstorems.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Data
@TableName("product")
public class Product {
    @TableId(value = "productid")
    @NotEmpty(message = "productid不能为空")
    private String productId;
    @TableField("categoryid")
    @NotEmpty(message = "categoryid不能为空")
    private String categoryId;
    @NotEmpty(message = "名字不能为空")
    private String name;
    @TableField(value = "description")
    @NotEmpty(message = "描述不能为空")
    private String description;
}
